<?php $this->load->view('base/header'); ?>

<link rel="stylesheet" media="screen" href="<?php echo base_url() . 'css/jquery.datatable.gui.css' ?>"/>
<link rel="stylesheet" media="screen" href="<?php echo base_url() . 'css/jquery-ui-1.8.14.custom.css' ?>"/>
<link rel="stylesheet" media="screen" href="<?php echo base_url().'css/table.css'?>"/>

<script type="text/javascript" src="<?php echo base_url() . 'js/jquery-ui-1.8.14.custom.min.js' ?>"></script>
<script type="text/javascript" src="<?php echo base_url() . 'js/jquery.dataTables.js' ?>"></script>
<script type="text/javascript" src="<?php echo base_url() . 'js/jquery.dataTables.ajaxPlugin.js' ?>"></script>
<script type="text/javascript" src="<?php echo base_url() . 'js/br-06/realisasi.js' ?>"></script>

<section>
    <div class="container_8 clearfix">

        <!-- Main Section -->

        <section class="main-section grid_8">

            <!-- Statistics Section -->
            <div class="main-content">
                <header>
                    <h2>
                        Realisasi Pembelian
                    </h2>
                </header>
                <section class="container_6 clearfix">
                    <div class="grid_6">
                       <!-- <h3>Toko :
                            <?php
                            $data['toko'] = $toko;
                            $this->load->view('pengurus/br-06/select_toko', $data['toko']);
                            ?>
                        </h3>
-->

                        <section class="clearfix">
                            <form class="form" id="realisasi-pembelian">
                                <div style="float: left;">
                                    <div class="clearfix">
                                        <h3>Purchase Order (PO)</h3>
                                    </div>
                                    <div class="clearfix">
                                        <label>No. Order <em></em><small></small></label>
                                        <input type="text" name="NO_ORDER" id="NO_ORDER" maxlength="12" />
                                        <input type="hidden" name="ID_ORDER" id="ID_ORDER" maxlength="12" />
                                    </div>
                                   <!-- <div class="clearfix">
                                        <label>Tanggal Order<small>mm/dd/yyyy</small></label>
                                        <input type="date" name="TGL_ORDER" id="TGL_ORDER"/>
                                    </div>
                                   
                                    <div class="clearfix">
                                        <label>Supplier<em></em><small></small></label>
                                        <input type="text" name="ID_SUPLIER" required="required"/>
                                    </div>-->
                                    <div class="action clearfix">
                                        <button class="button button-gray" type="submit" id="cek_order"><span class="accept"></span>Cek</button>
                                    </div>

                             <div style="clear: both;">
                            <table id="barang_order_master" width="100%" class="detail_table">
                            <thead>
                                <tr>
                                    <th>ID Barang</th>
                                    <th>Nama Barang</th>
                                    <th>Jumlah</th>
                                    <th>Harga / Unit</th>
                                    <th>Sub Total</th>
                                </tr>
                            </thead>
                            <tbody>
                            </tbody>
                            <tfoot></tfoot>
                        </table>
                                </div>

                                   
                                </div>

                                <div style="float: left;">
                                    <div class="clearfix">
                                        <h3>Faktur Pembelian</h3>
                                    </div>
                                    <div class="clearfix">
                                        <label>No. Faktur <em></em><small></small></label>
                                        <input type="text" name="NO_FAKTUR" id="NO_FAKTUR" maxlength="12" />
                                        <input type="hidden" name="ID_FAKTUR" id="ID_FAKTUR" maxlength="12" />
                                    </div>
                                    <!--
                                    <div class="clearfix">
                                        <label>Tanggal Faktur<small>mm/dd/yyyy</small></label>
                                        <input type="date" name="TGL_FAKTUR" name=TGL_FAKTUR" />
                                    </div>
                                    -->
                                    <div class="action clearfix">
                                        <button class="button button-gray" type="submit" id="cek_faktur"><span class="accept"></span>Cek</button>
                                    </div>

                                    <div style="clear: both;">
                            <table id="barang_faktur_master" width="100%" class="detail_table">
                            <thead>
                                <tr>
                                    <th>ID Barang</th>
                                    <th>Nama Barang</th>
                                    <th>Jumlah</th>
                                    <th>Harga / Unit</th>
                                    <th>Sub Total</th>
                                </tr>
                            </thead>
                            <tbody>
                            </tbody>
                            <tfoot></tfoot>
                        </table>
                                </div>

                                </div>

                                <div style="float: left;">
                                    <div class="clearfix">
                                        <h3>Faktur Pembelian</h3>
                                    </div>
                                    <div class="clearfix">
                                        <label>No. Bukti Transaksi <em></em><small></small></label>
                                        <input type="text" name="NO_BUKTI" id="NO_BUKTI" maxlength="12" />
                                        <input type="hidden" name="ID_BUKTI" id="ID_BUKTI" maxlength="12" />
                                    </div>
                                    <!--
                                    <div class="clearfix">
                                        <label>Tanggal Faktur<small>mm/dd/yyyy</small></label>
                                        <input type="date" name="TGL_FAKTUR" name=TGL_FAKTUR" />
                                    </div>
                                    -->

                                    <div style="clear: both;">
                            
                                </div>

                                </div>

                                <div style="clear: both;">
                                <div class="action clearfix">
                                        <button class="button button-gray" type="submit" id="realisasi"><span class="accept"></span>Realisasi</button>
                                    </div>
                                    </div>
                            </form>                                
                        </section>

                    </div>
                </section>


                <div id="dialog-order">
                    <table id="order_master" width="100%" class="datatable">
                        <thead>
                        </thead>
                        <tbody>
                        </tbody>
                    </table>
                </div>

                 <div id="dialog-faktur">
                    <table id="faktur_master" width="100%" class="datatable">
                        <thead>
                        </thead>
                        <tbody>
                        </tbody>
                    </table>
                </div>

                <div id="dialog-trx">
                    <table id="trx_master" width="100%" class="datatable">
                        <thead>
                        </thead>
                        <tbody>
                        </tbody>
                    </table>
                </div>


            </div>
            <!-- End Statistics Section -->

        </section>

        <!-- Main Section End -->

    </div>
</section>
</div>

<?php $this->load->view('base/footer'); ?>
